<% content_tag(:ul, :id=>"structure_#{structure.id}", :class=>"structureList move", :style=>"position: relative;") do %>
  <li>
   <% content_tag(:div, :class=>"block #{structure_css_class(structure)}") do %>
    <b class="rd5"></b><b class="rd4"></b><b class="rd3"></b><b class="rd2"></b><b class="rd1"></b>
      <% content_tag(:div, :id=>"structure_#{structure.id}_move", :class=>"content") do %>
        <%= link_to structure.title, edit_record_path(structure) %>
        
        <div class="icoPanel">
        	<%= link_to image_tag("manage/icons/image.png", :alt=>"картинки", :title=>"картинки"), manage_structure_photos_path(structure.id) %>
          <%= edit_record_tag(structure) %>
          <%= link_to image_tag("manage/ico_settings.gif", :alt=>t('label.settings'), :title=>t('label.settings')), settings_record_path(structure) %>
          <%= link_to image_tag("manage/ico_del.gif", :alt=>t('label.delete'), :title=>t('label.delete')), manage_structure_path(:id=>structure.id), :method=>:delete, :confirm=>t("label.confirm_delete") %>
        </div>
      <% end %>
    <b class="rd1"></b><b class="rd2"></b><b class="rd3"></b><b class="rd4"></b><b class="rd5"></b>
   <% end %>
   <%= render :partial=>"structure", :collection=>structure.children if structure.has_descendants? %>
  </li>
<% end %>
